Optimal. Leaf size=101 \[ -\frac{2 (b B-A c) \sqrt{c d-b e} \tanh ^{-1}\left (\frac{\sqrt{c} \sqrt{d+e x}}{\sqrt{c d-b e}}\right )}{b c^{3/2}}-\frac{2 A \sqrt{d} \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{b}+\frac{2 B \sqrt{d+e x}}{c} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.353731, antiderivative size = 101, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231 \[ -\frac{2 (b B-A c) \sqrt{c d-b e} \tanh ^{-1}\left (\frac{\sqrt{c} \sqrt{d+e x}}{\sqrt{c d-b e}}\right )}{b c^{3/2}}-\frac{2 A \sqrt{d} \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{b}+\frac{2 B \sqrt{d+e x}}{c} \]
Antiderivative was successfully verified.
[In] Int[((A + B*x)*Sqrt[d + e*x])/(b*x + c*x^2),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 42.2739, size = 88, normalized size = 0.87 \[ - \frac{2 A \sqrt{d} \operatorname{atanh}{\left (\frac{\sqrt{d + e x}}{\sqrt{d}} \right )}}{b} + \frac{2 B \sqrt{d + e x}}{c} + \frac{2 \left (A c - B b\right ) \sqrt{b e - c d} \operatorname{atan}{\left (\frac{\sqrt{c} \sqrt{d + e x}}{\sqrt{b e - c d}} \right )}}{b c^{\frac{3}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((B*x+A)*(e*x+d)**(1/2)/(c*x**2+b*x),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.348006, size = 101, normalized size = 1. \[ \frac{2 (A c-b B) \sqrt{c d-b e} \tanh ^{-1}\left (\frac{\sqrt{c} \sqrt{d+e x}}{\sqrt{c d-b e}}\right )}{b c^{3/2}}-\frac{2 A \sqrt{d} \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{b}+\frac{2 B \sqrt{d+e x}}{c} \]
Antiderivative was successfully verified.
[In] Integrate[((A + B*x)*Sqrt[d + e*x])/(b*x + c*x^2),x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.019, size = 196, normalized size = 1.9 \[ 2\,{\frac{B\sqrt{ex+d}}{c}}+2\,{\frac{Ae}{\sqrt{ \left ( be-cd \right ) c}}\arctan \left ({\frac{c\sqrt{ex+d}}{\sqrt{ \left ( be-cd \right ) c}}} \right ) }-2\,{\frac{Acd}{b\sqrt{ \left ( be-cd \right ) c}}\arctan \left ({\frac{c\sqrt{ex+d}}{\sqrt{ \left ( be-cd \right ) c}}} \right ) }-2\,{\frac{bBe}{c\sqrt{ \left ( be-cd \right ) c}}\arctan \left ({\frac{c\sqrt{ex+d}}{\sqrt{ \left ( be-cd \right ) c}}} \right ) }+2\,{\frac{Bd}{\sqrt{ \left ( be-cd \right ) c}}\arctan \left ({\frac{c\sqrt{ex+d}}{\sqrt{ \left ( be-cd \right ) c}}} \right ) }-2\,{\frac{A\sqrt{d}}{b}{\it Artanh} \left ({\frac{\sqrt{ex+d}}{\sqrt{d}}} \right ) } \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((B*x+A)*(e*x+d)^(1/2)/(c*x^2+b*x),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*sqrt(e*x + d)/(c*x^2 + b*x),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.359076, size = 1, normalized size = 0.01 \[ \left [\frac{A c \sqrt{d} \log \left (\frac{e x - 2 \, \sqrt{e x + d} \sqrt{d} + 2 \, d}{x}\right ) + 2 \, \sqrt{e x + d} B b -{\left (B b - A c\right )} \sqrt{\frac{c d - b e}{c}} \log \left (\frac{c e x + 2 \, c d - b e + 2 \, \sqrt{e x + d} c \sqrt{\frac{c d - b e}{c}}}{c x + b}\right )}{b c}, \frac{A c \sqrt{d} \log \left (\frac{e x - 2 \, \sqrt{e x + d} \sqrt{d} + 2 \, d}{x}\right ) + 2 \, \sqrt{e x + d} B b - 2 \,{\left (B b - A c\right )} \sqrt{-\frac{c d - b e}{c}} \arctan \left (\frac{\sqrt{e x + d}}{\sqrt{-\frac{c d - b e}{c}}}\right )}{b c}, -\frac{2 \, A c \sqrt{-d} \arctan \left (\frac{\sqrt{e x + d}}{\sqrt{-d}}\right ) - 2 \, \sqrt{e x + d} B b +{\left (B b - A c\right )} \sqrt{\frac{c d - b e}{c}} \log \left (\frac{c e x + 2 \, c d - b e + 2 \, \sqrt{e x + d} c \sqrt{\frac{c d - b e}{c}}}{c x + b}\right )}{b c}, -\frac{2 \,{\left (A c \sqrt{-d} \arctan \left (\frac{\sqrt{e x + d}}{\sqrt{-d}}\right ) - \sqrt{e x + d} B b +{\left (B b - A c\right )} \sqrt{-\frac{c d - b e}{c}} \arctan \left (\frac{\sqrt{e x + d}}{\sqrt{-\frac{c d - b e}{c}}}\right )\right )}}{b c}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*sqrt(e*x + d)/(c*x^2 + b*x),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 16.0683, size = 277, normalized size = 2.74 \[ \frac{2 \left (- \frac{A d e \left (\begin{cases} - \frac{\operatorname{atan}{\left (\frac{\sqrt{d + e x}}{\sqrt{- d}} \right )}}{\sqrt{- d}} & \text{for}\: - d > 0 \\\frac{\operatorname{acoth}{\left (\frac{\sqrt{d + e x}}{\sqrt{d}} \right )}}{\sqrt{d}} & \text{for}\: - d < 0 \wedge d < d + e x \\\frac{\operatorname{atanh}{\left (\frac{\sqrt{d + e x}}{\sqrt{d}} \right )}}{\sqrt{d}} & \text{for}\: d > d + e x \wedge - d < 0 \end{cases}\right )}{b} + \frac{B e \sqrt{d + e x}}{c} - \frac{e \left (- A c + B b\right ) \left (b e - c d\right ) \left (\begin{cases} \frac{\operatorname{atan}{\left (\frac{\sqrt{d + e x}}{\sqrt{\frac{b e - c d}{c}}} \right )}}{c \sqrt{\frac{b e - c d}{c}}} & \text{for}\: \frac{b e - c d}{c} > 0 \\- \frac{\operatorname{acoth}{\left (\frac{\sqrt{d + e x}}{\sqrt{\frac{- b e + c d}{c}}} \right )}}{c \sqrt{\frac{- b e + c d}{c}}} & \text{for}\: d + e x > \frac{- b e + c d}{c} \wedge \frac{b e - c d}{c} < 0 \\- \frac{\operatorname{atanh}{\left (\frac{\sqrt{d + e x}}{\sqrt{\frac{- b e + c d}{c}}} \right )}}{c \sqrt{\frac{- b e + c d}{c}}} & \text{for}\: \frac{b e - c d}{c} < 0 \wedge d + e x < \frac{- b e + c d}{c} \end{cases}\right )}{b c}\right )}{e} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x+A)*(e*x+d)**(1/2)/(c*x**2+b*x),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.281954, size = 157, normalized size = 1.55 \[ \frac{2 \, A d \arctan \left (\frac{\sqrt{x e + d}}{\sqrt{-d}}\right )}{b \sqrt{-d}} + \frac{2 \, \sqrt{x e + d} B}{c} + \frac{2 \,{\left (B b c d - A c^{2} d - B b^{2} e + A b c e\right )} \arctan \left (\frac{\sqrt{x e + d} c}{\sqrt{-c^{2} d + b c e}}\right )}{\sqrt{-c^{2} d + b c e} b c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*sqrt(e*x + d)/(c*x^2 + b*x),x, algorithm="giac")
[Out]